package flyweight;

import java.util.HashMap;

public class SignInfoFactory {
    private static HashMap<String, SignInfo> pool = new HashMap<>();
    private static SignInfo signInfo;

    public static SignInfo getSignInfo(String key) {
        if (!pool.containsKey(key)){
            signInfo = new SignInfo();
        }
        pool.put(key, signInfo);
        return pool.get(key);
    }
}
